package com.amos.teaching_aids.ui.Fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.amos.teaching_aids.R;

/**
 * Created by Amos6 on 2016/10/5.
 */

public abstract class BaseFragment extends Fragment {


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(getLayout(), container,false);
        initView(view);
        return view;
    }

    public abstract int getLayout();

    protected void initView(View view){

    }
}
